<script setup lang="ts">
const {waterForm} = defineProps<{
  waterForm: Object;  // 定义采样时间的类型
}>();
</script>

<template>
  <el-card class="box-card">
    <div style="text-align: center;display: flex;align-items: center;justify-content: space-between">
      <h3></h3>
      <h1> 环境空气和废气 热脱附-气相色谱质谱法分析原始记录(B面)</h1>
      <div></div>
    </div>
    <div>SXLPHJ/JL/CX-22-72</div>
    <table class="table">
      <tr>
        <td colspan="7" style="text-align: center">
          <div style="display: flex;align-items: center;justify-content: space-between">
            <div></div>
            <span style="font-size: 18px">校准曲线绘制</span>
            <div style="display: flex;align-items: center;">
              <span style="width: 140px;">标定日期：</span>
              <el-input style="border: 1px solid #ccc;border-radius: 6px" placeholder="请输入"
                        v-model="waterForm.hzrq"></el-input>
            </div>
          </div>
        </td>
      </tr>
      <tr>
        <td colspan="2">标准贮备液编号</td>
        <td>标准贮备液有效期</td>
        <td>移取贮备液体积(μL)</td>
        <td>使用液浓度(mg/L)</td>
        <td colspan="2">定容体积(mL)</td>
      </tr>
      <tr v-for="(item,index) in waterForm.bdatas.jzqxhz1" :key="index">
        <td colspan="2">
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.jz_bzzbybh">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.jz_nzzbyyxq">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.jz_yqzbytj">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.jz_syynd">
          </el-input>
        </td>
        <td colspan="2">
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.jz_drtj">
          </el-input>
        </td>
      </tr>

      <tr>
        <td>序号</td>
        <td>待测物使用液浓度(μg/mL)</td>
        <td>待测物使用液加入量(μL)</td>
        <td>定容体积(μL)</td>
        <td>曲线浓度(μg/mL)</td>
        <td>曲线点加载量(μL)</td>
        <td>内标使用液加载量(μL)</td>
      </tr>
      <tr v-for="(item,index) in waterForm.bdatas.jzqxhz2" :key="index">
        <td>{{ index + 1 }}</td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.dcwsyynd">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.dcwsyyjrl">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.drtjml">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.qxndml">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.qxdjzl">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.nbsyyjzl">
          </el-input>
        </td>
      </tr>
      <tr>
        <td colspan="7">
          <div style="display:flex;align-items: center;">
            曲线信息见(
            <el-input style="width: 10%;border: 1px solid transparent" placeholder="请输入"
                      v-model="waterForm.qxxx">
            </el-input>
            ) 页。
          </div>
        </td>
      </tr>
      <tr>
        <td colspan="7">
          <div style="text-align: center">
            质控要求
          </div>
        </td>
      </tr>
      <tr>
        <td colspan="2">样品编号</td>
        <td>目标物含量mi(ng)</td>
        <td>测定结果</td>
        <td>质控要求(ng)</td>
        <td>是否合格</td>
        <td>备注</td>
      </tr>
      <tr v-for="(item,index) in waterForm.qcdatas" :key="index">
        <td colspan="2">
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.ypbh">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.mbwhl">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.cdjg">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.zkyq">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.sfhg">
          </el-input>
        </td>
        <td>
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="item.notes">
          </el-input>
        </td>
      </tr>
      <tr>
        <td colspan="2">备注</td>
        <td colspan="5">
          <el-input style="width: 100%;border: 1px solid transparent" placeholder="请输入"
                    v-model="waterForm.bnotes">
          </el-input>
        </td>
      </tr>
    </table>
  </el-card>
</template>

<style scoped lang="scss">

.table {
  width: 100%;
  border-collapse: collapse; /* 表格边框合并 */
  text-align: left; /* 默认左对齐 */
  font-size: 14px; /* 字体大小 */
  color: #606266; /* 默认字体颜色 */
  margin-bottom: 20px;
}

.table th,
.table td {
  border: 1px solid #c2bfbf; /* 表格单元格边框颜色 */
  padding: 10px; /* 单元格内边距 */
}

.table th {
  background: #f5f7fa; /* 表头背景色 */
  font-weight: 600; /* 表头字体加粗 */
  color: #303133; /* 表头字体颜色 */
  text-align: center; /* 表头居中 */
}

.table-td {
  display: flex;
}

::v-deep .el-input__wrapper {
  background-color: transparent;
  box-shadow: none;
}

::v-deep .el-select__wrapper {
  background-color: transparent;
  box-shadow: none;
}

::v-deep .el-input-group__append {
  background-color: transparent;
  box-shadow: none;
}
</style>
